Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Time Base Functions


Working With Time Base Values

Every time base contains a rate, a start time, a stop time, a current time, and some status information. The Movie Toolbox provides a number of functions that allow your application to work with the contents of a time base. This section describes those functions.

The GetTimeBaseTime function lets you retrieve the current time value of a time base. You can set the current time value by calling the SetTimeBaseTime function--this function requires you to provide a time structure. Alternatively, you can set the current time based on a time value by calling the SetTimeBaseValue function.

You can determine the rate of a time base by calling the GetTimeBaseRate function. You can set the rate of a time base by calling the SetTimeBaseRate function. You can determine the effective rate of a specified time base (relative to the master time base to which it is subordinate) by calling the GetTimeBaseEffectiveRate function.

You can retrieve the start time of a time base by calling the GetTimeBaseStartTime function. You can set the start time of a time base by calling the SetTimeBaseStartTime function. Similarly, you can use
the GetTimeBaseStopTime and SetTimeBaseStopTime functions to work with the stop time of a time base.

The Movie Toolbox provides functions that allow you to work with the status information of a time base. The GetTimeBaseStatus function allows you to read the current status of a time base. The GetTimeBaseFlags function helps you obtain the control flags of a time base. You can set these flags by calling the SetTimeBaseFlags function.


Subtopics
SetTimeBaseTime
SetTimeBaseValue
GetTimeBaseTime
SetTimeBaseRate
GetTimeBaseRate
GetTimeBaseEffectiveRate
SetTimeBaseStartTime
GetTimeBaseStartTime
SetTimeBaseStopTime
GetTimeBaseStopTime
SetTimeBaseFlags
GetTimeBaseFlags
GetTimeBaseStatus

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996